introspection: Fix parallel builds
authorDamien Lespiau <damien.lespiau@intel.com>
Mon, 22 Mar 2010 16:53:18 +0000 (12:53 -0400)
committerTristan Van Berkom <tristan.van.berkom@gmail.com>
Sun, 4 Apr 2010 00:59:19 +0000 (20:59 -0400)
One needs to add an explicit dependency between the gir files and the
.la libtool wrapper as this dependency is not added automatically by
Makefile.introspection. Not adding these breaks parallel builds as make
does not wait for the .la to be generated before launching g-ir-scanner.

gdk-pixbuf/Makefile.am
gdk/Makefile.am

index 58685dcb9ec82eb1783ffe8541d03fcaaaafd052..cf1769bae9cc98c301fc6ce4e32a8dc9d99b8f6c 100644 (file)
@@ -691,6 +691,7 @@ EXTRA_DIST +=                                       \
 
 if HAVE_INTROSPECTION
 
+GdkPixbuf-2.0.gir: libgdk_pixbuf-2.0.la Makefile
 GdkPixbuf_2_0_gir_SCANNERFLAGS = --strip-prefix=Gdk
 GdkPixbuf_2_0_gir_INCLUDES = GModule-2.0 Gio-2.0
 GdkPixbuf_2_0_gir_LIBS = libgdk_pixbuf-2.0.la
index 29ffa6452c36e1c7120fb57c3d6ea25fe3c783d9..2cee8f43b195296508ed786d0e2e7f20b3874e8f 100644 (file)
@@ -201,6 +201,7 @@ introspection_files = \
         gdkenumtypes.h \
         $(srcdir)/x11/*.c
 
+Gdk-2.0.gir: $(gdktargetlib) Makefile
 Gdk_2_0_gir_SCANNERFLAGS = --strip-prefix=Gdk --add-include-path=../gdk-pixbuf
 Gdk_2_0_gir_INCLUDES = Gio-2.0 GdkPixbuf-2.0 Pango-1.0
 Gdk_2_0_gir_LIBS = $(gdktargetlib)